import { NgModule } from '@angular/core';
import { Routes, RouterModule }  from '@angular/router';

import { Login } from './login.component';
import { LoginSelectionComponent } from './select/login-selection.component';
import { AssoComponent } from './asso/asso.component';
import { CompanyComponent } from './company/company.component';
import { UserComponent } from './user/user.component';
import { ResetPassComponent } from "./reset-pass/reset-pass.component";
import { PagesGuard } from 'app/pages';

// noinspection TypeScriptValidateTypes
const routes: Routes = [
  {
    path: 'login',
    component: Login,
    // canActivate: [PagesGuard],
    children: [
      {path: '', component: LoginSelectionComponent},
      {path: 'asso', component: AssoComponent},
      {path: 'company', component: CompanyComponent},
      {path: 'user', component: UserComponent},
      {path: 'reset', component: ResetPassComponent},
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class LoginRoutingModule { }
